' This software is a port of Mike Dogan's great ParticleCandy for BlitzBasic3d
'
' http://www.x-pressive.com
'
' Check his page if you're interested in his latest ParticleCandy Engine
' for Corona SDK!
'
' A BIG THANKS goes to him as he gave the permission to publish this as open source
'
' For any support or questions contact: martin.leidel@gmail.com
'
' This software is provided 'as-is', without any express or implied
' warranty.  In no event will the authors be held liable for any damages
' arising from the use of this software.
' 
' Permission is granted to anyone to use this software for any purpose,
' including commercial applications, and to alter it and redistribute it
' freely, subject to the following restrictions:
' 
' 1. The origin of this software must not be misrepresented; you must not
' claim that you wrote the original software. If you use this software
' in a product, an acknowledgment in the product documentation would be
' appreciated but is not required.
' 2. Altered source versions must be plainly marked as such, and must not be
' misrepresented as being the original software.
' 3. This notice may not be removed or altered from any source distribution.

Strict

Import minib3d

Class Particle
  Field _x:Float, _y:Float, _z:Float    ' PARTICLE'S CENTER COORDS
  Field _lx:Float, _ly:Float, _lz:Float ' PARTICLE'S PREVIOUS POSITION
  Field _vx:Float, _vy:Float, _vz:Float ' PARTICLE'S SPEED
  Field _bnc:Int        ' BOUNCE COUNT
  Field _typ:Int        ' PARTICLE'S TYPE
  Field _scl:Float      ' PARTICLE'S SCALE FACTOR
  Field _sze:Float      ' SIZE
  Field _alp:Float      ' ALPHA
  Field _rot:Float      ' ROTATION
  Field _r:Float, _g:Float, _b:Float    ' xColor RGB
  Field _stt:Int        ' START TIME (MILLI-SECS)
  Field _tea:Float      ' INCREASE, EMIT TRAIL If ABOVE 1
  Field _piv:TEntity    ' HANDLE To PARTICLE'S EMITTER
  Field _id:Int
End Class
